export {};
//  交叉类型 & 的使用
// 定义一个 Person 类型
type Person = {
  name: string;
  age: number;
  say(): void;
};

type Student = Person & {
  score: number;
};

let student: Student = {
  name: 'bingo',
  age: 18,
  say() {
    console.log('hello');
  },
  score: 100,
};
